package design.Day04;

/**
* @description: 命名模式main
* @author: wangjun
* @create: 2022-01-21
*/
public class CommandMain {

    public static void main(String[] args) {
        RemoteControl remoteControl = new RemoteControl();
        Light light = new Light();
        LightCommand lightCommand = new LightCommand();
        lightCommand.setLight(light);
        remoteControl.setCommand(lightCommand);
        remoteControl.execute();
    }
}
